Spaghetti Code

Defensive Programming


Sword

Offensive Programming

Despite what the name implies, offensive programming exists as a subset of defensive programming, not the opposite of defensive programming, where the code focuses on handling errors generated from outside the program's control, such as user input. Data from within the program's "line of defense" are to be trusted.